<div>
  <h1>南京工程学院选课系统</h1>

  <form
    class="login-form"
    nz-form
    [formGroup]="validateForm"
    (ngSubmit)="onSubmit(validateForm.value)"
  >
    <nz-form-item>
      <nz-form-control nzErrorTip="请输入您的学号">
        <nz-input-group nzPrefixIcon="user">
          <input formControlName="no" nz-input placeholder="学号" />
        </nz-input-group>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-control nzErrorTip="请输入您的密码">
        <nz-input-group nzPrefixIcon="user">
          <input
            formControlName="pw"
            nz-input
            type="password"
            placeholder="密码"
          />
        </nz-input-group>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-control>
        <button
          class="login-form-button"
          nz-button
          nzType="primary"
          [disabled]="!validateForm.valid"
        >
          登录
        </button>
      </nz-form-control>
    </nz-form-item>
  </form>

  <p>Copyright &copy; 2019 南京工程学院计算机中心</p>
</div>